
import request from "../config/request.js";
import host from "../config/host";

const getEnergyConsumeDictionary = function(callback) {
  request.getData(host.pcHostUrl + `/wx/energyConsume/getOpsDictionary`, callback);
};
const getListByCode = function(params, callback) {
  request.getData(host.pcHostUrl + `/wx/dictionary/${params.code}`, callback);
};

export default {
  getEnergyConsumeDictionary,
  getListByCode
};
